provider Projects PUT /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/ownership/
@utdk/sentry /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/ownership/
Update Ownership Configuration for a Project
Updates ownership configurations for a project. Note that only the attributes submitted are modified.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
project_id_or_slug path required
The ID or slug of the project the resource belongs to.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updateOwnershipConfigurationForAProject
PUT/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/ownership/
Updates ownership configurations for a project. Note that only the attributes submitted are modified.

Parameters

required

The ID or slug of the organization the resource belongs to.

required

The ID or slug of the project the resource belongs to.

Input

Raw input for ownership configuration. See the [Ownership Rules Documentation](/product/issues/ownership-rules/) to learn more.

A boolean determining who to assign ownership to when an ownership rule has no match. If set to `True`, all project members are made owners. Otherwise, no owners are set.

Auto-assignment settings. The available options are: - Auto Assign to Issue Owner - Auto Assign to Suspect Commits - Turn off Auto-Assignment

Set to `True` to sync issue owners with CODEOWNERS updates in a release.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.updateOwnershipConfigurationForAProject({
  "codeownersAutoSync": true
})